home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950329-19950528
/
000156_news@columbia.edu_Mon Apr 17 14:45:24 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA24005
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 17 Apr 1995 10:45:30 -0400
Received: by apakabar.cc.columbia.edu id AA25580
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 17 Apr 1995 10:45:28 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit in background
Date: 17 Apr 1995 14:45:24 GMT
Organization: Columbia University
Lines: 35
Message-Id: <3mtuu4$ov4@apakabar.cc.columbia.edu>
References: <3mmrbs$g0m@apakabar.cc.columbia.edu> <3mtnms$cnv@meaddata.meaddata.com>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <3mtnms$cnv@meaddata.meaddata.com>,
Robert Gerdardy <robertg@meaddata.com> wrote:
>The program I have is not written just to accomodate Kermit. Kermit is
>entirely incidental to what I am doing; it justs happens to be the
>protocol available on the other end. I don't want Kermit to be
>sophistcated, I just want it to transfer the file and get out of the
>way. I have asked to have the documentation procured, since that seems to
>be the only way to get any help, but I thought I might get a hand with
>getting this going while I wait for the document. Silly me.
>
I also said:
: You can also make it work in the setup you have, but it's more
: complicated. The best way of doing it is by having your program pass
: the communication line's file descriptor to Kermit in the -l command-line
: option. Read about this in Chapter 14 of "Using C-Kermit".
:
I don't know your program so I can't tell you exactly, precisely what
to do, but the general idea is to invoke Kermit with the "-l n" option,
where n is the numeric file descriptor of the open communication device.
Presumably your program has this in a variable -- let's say the variable's
name is fd. Then you can form the Kermit command line like this:
sprintf(buf,"kermit -l %d -r", fd);
and then you can exec Kermit with this command line. Passing it an open
file descriptor is necessary because otherwise it would try to get a
lockfile, set device modes, etc etc, which would (should) not work if your
proram had already opened it in the normal UNIX manner.
- Frank